# Contributor: Olliver Schinagl <oliver@schinagl.nl>
# Maintainer: Olliver Schinagl <oliver@schinagl.nl>
pkgname=stress-ng
pkgver=0.18.05
pkgrel=0
pkgdesc="stress-ng will stress test a computer system in various selectable ways"
url="https://github.com/ColinIanKing/stress-ng"
arch="all"
license="GPL-2.0-or-later"
options="!check" # tests are not portable
makedepends="
	judy-dev
	libaio-dev
	libbsd-dev
	linux-headers
	lksctp-tools-dev
	zlib-dev
	"
subpackages="$pkgname-doc $pkgname-bash-completion"
source="$pkgname-$pkgver.tar.gz::https://github.com/ColinIanKing/stress-ng/archive/refs/tags/V$pkgver.tar.gz"

build() {
	export CFLAGS="${CFLAGS/-Os/-O2}"
	make
}

package() {
	make DESTDIR="$pkgdir" \
		JOBDIR="/usr/share/doc/$pkgname/example-jobs/" install
}

sha512sums="
7b2f989e172b304eb47a92fae1ae3b3e048e56cd54811b0df8e7452c38b523a2a16e82a63ed0845c10cc19fb94d8ad9c099a2e0253cebe15f5bc6f7dd1f2c52e  stress-ng-0.18.05.tar.gz
"
